<%@ page language="java" contentType="text/html;charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>pilot列表页面</title>
<style>
	body{
		background-image: url(images/asuka&ayanami.jpg);
		background-size: 100%;
	}
</style>
</head>
<body>
	<div>
		<form action="admin/getList.action" method="POST">
		<table id="table1">
			<tr>
				<td>姓名</td>
				<td>
					<input type="text" name="sName" value="${sName}"/>
				</td>
			</tr>
			<tr>
				<td>性别</td>
				<td>
					<select name="sSex">
						<option value="" selected="selected"></option>
						<option value="男">男</option>
						<option value="女">女</option>
					</select>
				</td>
			</tr>
			<tr>
				<td><input type="submit" value="查询"/></td>
				<td><input type="reset" value="清空"/></td>
				
			</tr>
		</table>
		<table id="table2">
			<tr>
				<th>姓名</th><th>性别</th><th>年龄</th><th>工作</th><th>国籍</th>
			</tr>
		<c:forEach items="${pilotList}" var="item">
			<tr>
				<td>${item.sName}</td>
				<td>${item.sSex}</td>
				<td>${item.iAge}</td>
				<td>${item.sWork}</td>
				<td>${item.sPlace}</td>
			</tr>
		</c:forEach>
		</table>
		</form>
	</div>
</body>
<script type="text/javascript" src="js/jquery-3.2.1.js"></script>
<script type="text/javascript">
</script>
</html>